#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QString>
#include <QByteArray>
#include "music.h"
#include "smarthome.h"
#include "weather.h"
#include "mysql.h"
#include <QMessageBox>
#include <QList>
#include <QSettings>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void savename();//记住用户名
private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

//    void on_checkBox_clicked(bool checked);

private:
    Ui::MainWindow *ui;
    QString sql;//sql语句
    mysql * user=new mysql;
    QSqlQuery query;
    QStringList userr;
    bool remember;

//    QList<yonghu> userr;//用户链表
};
#endif // MAINWINDOW_H
